package com.zl.service;

import com.zl.dao.ClassesDao;
import com.zl.model.Classes;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class ClassesServiceImpl implements ClassesService {

    @Autowired
    private ClassesDao classesDao;


    public void setClassesDao(ClassesDao classesDao) {
        this.classesDao = classesDao;
    }

    @Override
    public List<Classes> findAll() {
        return classesDao.findAll();
    }

    @Override
    public Classes findOne(int class_id) {
        return classesDao.findOne(class_id);
    }

    @Override
    public int insert(Classes classes) {
        return classesDao.insert(classes);
    }

    @Override
    public int update(Classes classes) {
        return classesDao.update(classes);
    }
}
